CREATE TABLE [dbo].[T_MEDICAL_CENTER]
(
[MEDICAL_CENTER_ID] [bigint] NOT NULL IDENTITY(1, 1),
[MEDICAL_CENTER_NAME] [varchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ADDRESS_ID] [bigint] NULL,
[MEDICAL_CENTER_STATUS] [bit] NOT NULL,
[CREATE_DATE] [datetime] NOT NULL,
[DISABLE_DATE] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_MEDICAL_CENTER] ADD CONSTRAINT [PK__T_MEDICA__7F1BB23B7999B642] PRIMARY KEY CLUSTERED  ([MEDICAL_CENTER_ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_MEDICAL_CENTER] ADD CONSTRAINT [UQ__T_MEDICA__C43C4320AE380757] UNIQUE NONCLUSTERED  ([MEDICAL_CENTER_NAME]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_MEDICAL_CENTER] ADD CONSTRAINT [FK__T_MEDICAL__ADDRE__32AB8735] FOREIGN KEY ([ADDRESS_ID]) REFERENCES [dbo].[T_ADDRESS] ([ADDRESS_ID])
GO
